<template>
  <node 
    :title="config.name" 
    :show-error="showError" 
    :content="content" 
    :error-info="errorInfo"
    @selected="$emit('selected')" 
    @delNode="$emit('delNode')" 
    @insertNode="type => $emit('insertNode', type)"
    placeholder="并行分支" 
    header-bgc="#909399" 
    header-icon="el-icon-connection"/>
</template>

<script>
import Node from './Node'

export default {
  name: "ConcurrentNode",
  props: {
    config: {
      type: Object,
      default: () => {
        return {}
      }
    }
  },
  components: { Node },
  data() {
    return {
      showError: false,
      errorInfo: '',
    }
  },
  computed: {
    content() {
      return '并行分支'
    }
  },
  methods: {
    validate() {
      this.showError = false
      return true
    }
  }
}
</script>

<style lang="less" scoped>

</style>
